package com.starlinkdt.common.utils.mask;

import com.fasterxml.jackson.databind.introspect.Annotated;
import com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector;
import com.starlinkdt.common.annotation.DataMasking;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author cuixuan
 * @Description
 * @Date 2025/6/11 20:51
 */
@Slf4j
public class DataMaskingAnnotationIntroSpector extends NopAnnotationIntrospector {

    @Override
    public Object findSerializer(Annotated annotated) {
        DataMasking annotation = annotated.getAnnotation(DataMasking.class);
        /*if (annotation != null) {
            return new DataMaskingSerializer(annotation.maskFunc().operation());
        }*/
        return null;
    }

}